/**
 * 
 */
package com.huarui.desktop.model;

import net.sf.json.JSONObject;
import net.sf.json.JsonConfig;

/**
 * @author peng.sunp
 * 
 */
public class DesktopMenu {
	// (0=菜单组，1=分隔符，2=功能项)
	public static final int MENU_TYPE_GROUP = 0;
	public static final int MENU_TYPE_SPLITER = 1;
	public static final int MENU_TYPE_MODULE = 2;

	private Integer id;
	private Integer desktopId;
	private String menuName;
	private Integer menuType;
	private Integer parentId;
	private Integer jsModuleId;
	private Integer sequence;
	private Integer menuGroup;

	private static final String[] excludeProperties = { "id", "desktopId", "jsModuleId"};
	public static JsonConfig jsonConfig;
	static {
		jsonConfig = new JsonConfig();
		jsonConfig.setExcludes(excludeProperties);
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getDesktopId() {
		return desktopId;
	}

	public void setDesktopId(Integer desktopId) {
		this.desktopId = desktopId;
	}

	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	public Integer getMenuType() {
		return menuType;
	}

	public void setMenuType(Integer menuType) {
		this.menuType = menuType;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getJsModuleId() {
		return jsModuleId;
	}

	public void setJsModuleId(Integer jsModuleId) {
		this.jsModuleId = jsModuleId;
	}

	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	public Integer getMenuGroup() {
		return menuGroup;
	}

	public void setMenuGroup(Integer menuGroup) {
		this.menuGroup = menuGroup;
	}

	public String toString() {
		JSONObject jsonObject = JSONObject.fromObject(this, jsonConfig);
		return jsonObject.toString();
	}
}
